package cn.net.zyx.service.fallback;

import cn.net.zyx.domain.Video;
import cn.net.zyx.service.VideoService;
import org.springframework.stereotype.Service;

/**
 * description: VideoServiceFallback <br>
 * date: 2021/5/17 09:53 <br>
 *
 * @author: ZhangYixin <br>
 * version: 1.0 <br>
 */
@Service
public class VideoServiceFallback implements VideoService {

    @Override
    public Video findById(int videoId) {
        Video video = new Video();
        video.setTitle("这个是fallback里面的视频");
        video.setId(0);
        return video;
    }

    @Override
    public int save(Video video) {
        return 0;
    }
}
